package com.ll.blog.model.res;

import com.ll.blog.contant.TypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class ContentListRes implements Serializable {
    private Integer id;

    @ApiModelProperty(value = "发布者")
    private String username;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty(value = "文章ID")
    private Integer articleId;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "发布者ip")
    private String ip;
    @ApiModelProperty(value = "评论时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "父评论id（1级为0）")
    private Integer parentsId;

    private List<ContentListRes> children;
}
